﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/BMP_List.master" AutoEventWireup="true"
    CodeFile="Default.aspx.cs" Inherits="Pages_BdOperateLog_Default" %>
<asp:Content ID="contentHeader" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="contentSearch" ContentPlaceHolderID="contentPlaceHolderToolBar" runat="Server">
  <asp:DropDownList ID="ddlHostName" runat="server" Field="hostname" Opt="=" Width="160px"></asp:DropDownList>
模糊查询
  <asp:TextBox runat="server" ID="txtAll" Field="MenuName,Content,OperateBy" Opt="%" ToolTip="操作功能，数据内容，操作者">
    </asp:TextBox>
      <asp:DropDownList ID="ddlTableName" runat="server" Field="MenuName" Opt="=" Width="80px">
   <asp:ListItem Text="请选择..." Value=""></asp:ListItem>
    <asp:ListItem Text="订单管理" Value="订单管理"></asp:ListItem>
    <asp:ListItem Text="评论管理" Value="评论管理"></asp:ListItem>
    <asp:ListItem Text="新闻管理" Value="新闻管理"></asp:ListItem>
    
    </asp:DropDownList>
    操作时间
    <asp:TextBox ID="fromData" runat="server" Field="OperateDate" Opt="&#62;=" onFocus="GetMaxDate('toData','yyyy-MM-dd HH:mm:ss');" 
        ClientIDMode="Static" Width="130">
    </asp:TextBox>
    至
    <asp:TextBox ID="toData" runat="server" Field="OperateDate" Opt="&#60;=" onFocus="GetMinDate('fromData','yyyy-MM-dd HH:mm:ss');"
        ClientIDMode="Static" Width="130">
    </asp:TextBox>
    &nbsp;
     <asp:Button Text="批量恢复" runat="server"  ID="btnRecover" onclick="btnRecover_Click"  OnClientClick="return confirm('确定批量恢复吗？');"/>
   
     <asp:Button Text="永久删除" runat="server"  ID="btnDelete" onclick="btnDelete_Click"  OnClientClick="return confirm('确定永久删除吗？');"/>

    每页显示 <asp:TextBox runat="server" ID="txtPageSize" Text="20"  Width="50" >
    </asp:TextBox>
</asp:Content>
<asp:Content ID="contentMain" ContentPlaceHolderID="contentPlaceHolder" runat="Server">
    <asp:GridView ClientIDMode="Static" ID="gvInfos" runat="server" >
        <Columns>
		<asp:TemplateField  ItemStyle-Width="50">
            <HeaderTemplate>
                <input id="cbhALL" type="checkbox" onclick="SelectAll('gvInfos', this, 'cbItem');" /><label
                    for="cbhALL"></label>
            </HeaderTemplate>
            <ItemTemplate>
                <asp:CheckBox ID="cbItem" runat="server" />
            </ItemTemplate>
        </asp:TemplateField>	
        <asp:BoundField DataField="HostName" SortExpression="HostName" HeaderText="网站" />	
	    <asp:TemplateField SortExpression="OperateDate" HeaderText="操作时间"><ItemTemplate><%# Eval("OperateDate")%></ItemTemplate><EditItemTemplate><asp:TextBox runat="server" ID="BdOperateLogInfo_OperateDate" onclick="WdatePicker();" Text='<%# Eval("OperateDate")%>' /></EditItemTemplate> </asp:TemplateField>		
		<asp:BoundField DataField="OperateBy" SortExpression="OperateBy" HeaderText="操作者" />		
		
		<asp:BoundField DataField="MenuName" SortExpression="MenuName" HeaderText="操作功能" />		
		<asp:BoundField DataField="OperateType" SortExpression="OperateType" HeaderText="执行操作" />	
		<asp:BoundField DataField="Content" SortExpression="Content" HeaderText="数据内容" />	

        <asp:TemplateField HeaderText="恢复" ItemStyle-Width="50">
        <ItemTemplate>
         <asp:LinkButton ID="lbRecover" Text="恢复" CausesValidation="true" CommandName="Recover" CommandArgument='<%# Eval("GID")%>'
                    OnClientClick="return confirm('确定恢复吗？');" runat="server">
        </asp:LinkButton>
        </ItemTemplate>
        </asp:TemplateField> 

          <asp:TemplateField HeaderText="永久删除" ItemStyle-Width="50">
        <ItemTemplate>
         <asp:LinkButton ID="lbDelete" Text="永久删除" CausesValidation="true" CommandName="DeleteForEver" CommandArgument='<%# Eval("GID")%>'
                    OnClientClick="return confirm('确定永久删除吗？');" runat="server">
        </asp:LinkButton>
        </ItemTemplate>
        </asp:TemplateField> 
        
       
        	
		 
		
        </Columns>
    </asp:GridView>
</asp:Content>
